/*
 * label_list.h
 *
 *  Created on: 07/10/2013
 *      Author: vitor
 */

#ifndef LABEL_LIST_H_
#define LABEL_LIST_H_

#include <stdlib.h>
#include <string.h>
#include <stdio.h>

typedef struct _label {
	char string[256];
	int intValue;
} stringInt;

typedef struct _labelList {
	stringInt stringInt;
	struct _labelList* nextElement;
} stringIntList;

void init(stringIntList** stringIntListAddress);
void addStringInt(stringIntList** stringIntListAddress, stringInt toAdd);
int searchByString(stringIntList* toSearch, char* name, stringInt* result);
void printContents(stringIntList* toPrint);

#endif /* LABEL_LIST_H_ */
